package com.my.ecommercesystem.dao;



import com.my.ecommercesystem.entity.User;
import com.my.ecommercesystem.entity.UserAddress;

import java.util.List;

public interface UserDao {

    List<User> queryAllUser();

    User queryUserById(Integer id);

    boolean updateUser(User user);

    List<UserAddress> queryAddressByUserId(Integer id);

    List<UserAddress> queryDefaultAddressByUserId(Integer user_id);

    boolean updateAddressById(UserAddress address);

    boolean deleteAddressById(Integer address_id);

    boolean insertUserAdress(UserAddress userAddress);

    User login(String user_pwd,String user_phone);

    boolean insertUser(User user);

    User queryUserByPhone(String user_phone);
}
